package com.mh.community.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.mh.common.core.domain.BaseEntity;


//小区实体类 hjy_community
public class HjyCommunity extends BaseEntity { //继承实体类的基类(有5个公用字段)
    private static final long serialVersionUID = 3524197671743907112L; //父类BaseEntity已实现序列化接口

    @TableId //声明此属性为主键
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    //Jackson 会将数字类型（如 int、long）序列化为 JSON 数字。通过 @JsonFormat，可以将其序列化为字符串
    private Long communityId;
    //小区名称
    private String communityName;
    //小区编码
    private String communityCode;
    //省区划码-->String类型,但实际上是数字
    private String communityProvinceCode;
    //市区划码-->String类型,但实际上是数字
    private String communityCityCode;
    //区县划码-->String类型,但实际上是数字
    private String communityTownCode;
    //详细地址
    private String communityDetailedAddress;
    //经度
    private String communityLongitude;
    //纬度
    private String communityLatitude;
    //物业id
    @JsonFormat(shape = JsonFormat.Shape.STRING) //序列化为字符串
    private Long deptId;
    //排序
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Integer communitySort;


    //set(),get()
    public Long getCommunityId() {
        return communityId;
    }

    public void setCommunityId(Long communityId) {
        this.communityId = communityId;
    }

    public String getCommunityName() {
        return communityName;
    }

    public void setCommunityName(String communityName) {
        this.communityName = communityName;
    }

    public String getCommunityCode() {
        return communityCode;
    }

    public void setCommunityCode(String communityCode) {
        this.communityCode = communityCode;
    }

    public String getCommunityProvinceCode() {
        return communityProvinceCode;
    }

    public void setCommunityProvinceCode(String communityProvinceCode) {
        this.communityProvinceCode = communityProvinceCode;
    }

    public String getCommunityCityCode() {
        return communityCityCode;
    }

    public void setCommunityCityCode(String communityCityCode) {
        this.communityCityCode = communityCityCode;
    }

    public String getCommunityTownCode() {
        return communityTownCode;
    }

    public void setCommunityTownCode(String communityTownCode) {
        this.communityTownCode = communityTownCode;
    }

    public String getCommunityDetailedAddress() {
        return communityDetailedAddress;
    }

    public void setCommunityDetailedAddress(String communityDetailedAddress) {
        this.communityDetailedAddress = communityDetailedAddress;
    }

    public String getCommunityLongitude() {
        return communityLongitude;
    }

    public void setCommunityLongitude(String communityLongitude) {
        this.communityLongitude = communityLongitude;
    }

    public String getCommunityLatitude() {
        return communityLatitude;
    }

    public void setCommunityLatitude(String communityLatitude) {
        this.communityLatitude = communityLatitude;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public Integer getCommunitySort() {
        return communitySort;
    }

    public void setCommunitySort(Integer communitySort) {
        this.communitySort = communitySort;
    }

    @Override
    public String toString() {
        return "HjyCommunity{" +
                "communityId=" + communityId +
                ", communityName='" + communityName + '\'' +
                ", communityCode='" + communityCode + '\'' +
                ", communityProvinceCode='" + communityProvinceCode + '\'' +
                ", communityCityCode='" + communityCityCode + '\'' +
                ", communityTownCode='" + communityTownCode + '\'' +
                ", communityDetailedAddress='" + communityDetailedAddress + '\'' +
                ", communityLongitude='" + communityLongitude + '\'' +
                ", communityLatitude='" + communityLatitude + '\'' +
                ", deptId=" + deptId +
                ", communitySort=" + communitySort +
                '}';
    }
}
